<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport"
        content="width=device-width, initial-scale=1.0,maximum-scale=1.0,minimum=1.0,user-scalable=no">
    <meta name="format-detection" content="telephone=no, email=no">
    <link rel="stylesheet" type="text/css" href="css/report.css" />
    <script type="text/javascript" src="js/config.js"></script>
    <script type="text/javascript" src="js/jquery-3.4.1.min.js"></script>
    <script type="text/javascript" src="js/IMJSBridge.js"></script>
    <script type="text/javascript" src="js/index.js"></script>
    <title>投诉</title>
</head>

<bod>

    <div class="reportSuccessBox">
        <div class="successIcon">
            <img src="images/report_success.png" style="width: 48px;height: 48px;" />
        </div>
        <div class="reportTip">投诉已提交</div>
        <div class="reportDesc">
            我们会尽快核实，并通过消息通知你审核结果。感谢你的支持。
        </div>
        <div class="closeBtn">关闭</div>
    </div>

</bod>

<script language="javascript">
    $(function () {
        im.onReady(); // 初始化im

        $(".closeBtn").on('click', async function () {
            im.quit();
        })
    })

    //异步加载css,js文件
    var Head = document.getElementsByTagName('head')[0], style = document.createElement('style');
    function linkScript(parm, fn) {
        var linkScript;
        if (/\.css[^\.]*$/.test(parm)) {
            linkScript = document.createElement("link");
            linkScript.type = "text/" + ("css");
            linkScript.rel = "stylesheet";
            linkScript.href = parm;
        } else {
            linkScript = document.createElement("script");
            linkScript.type = "text/" + ("javascript");
            linkScript.src = parm;
        }
        Head.insertBefore(linkScript, Head.lastChild)
        linkScript.onload = linkScript.onerror = function () {
            if (fn) fn()
        }
    }
    let mode = getQueryString("mode")
    if (mode == 'dark') {
        linkScript("css/report.dark.css");
    }

</script>